#include "ParameterNode.h"

#include "Output/Console.h"
#include "ScriptCompiler/Token/Token.h"
#include "ScriptCompiler/AST/TypeNode.h"
#include "ScriptCompiler/AST/AccessLevelNode.h"
#include "ScriptCompiler/AST/ParameterNode.h"
#include "ScriptCompiler/AST/SentenceBlockNode.h"
#include "ScriptCompiler/AST/ExpressionNode.h"

void CParameterNode::DebugPrint(int32_t InDepth)
{
    //print depth
    for(int32_t i=0;i<InDepth;++i)
    {
        WH::Print(U"\t");
    }

    //print type
    Type->DebugPrint(InDepth);

    //print name
    WH::Print(U" " + Name->ToString());
}

std::shared_ptr<CScriptToken> CParameterNode::GetFirstToken()
{
    return Type->GetFirstToken();
}
